import require from '../utils/require'

export function saveCallRecord(
  caller: number,
  receiver: number,
  type: string,
  startTime: string,
  endTime: string
) {
  return require.post(
    '/p2p/call/record',
    JSON.stringify({
      caller: caller,
      receiver: receiver,
      type: type,
      startTime: startTime,
      endTime: endTime
    })
  )
}
